Survey.Survey.cssType = "bootstrap";

var surveyJSON = {
    "locale": "zh-cn",
    "pages": [
        {
            "name": "page1",
            "elements": [
                {
                    "type": "html",
                    "name": "question8",
                    "html": {
                        "zh-cn": '<div class="container">\n\t\t<p class="lead"></p>\n\t\t\n\t\t<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;您好！我们是湖南省脑卒中疾病医防融合试点项目工作组的调查员，这次调查由湖南省卫生健康委员会统一组织。主要是了解社区居民脑卒中患者发病率、患病率及病死率等相关信息，为国家制定卫生政策提供信息，希望得到您的配合。所调查的内容仅用于相关的分析，我们将按照中华人民共和国《统计法》的要求，对您回答的问题加以保密。希望您能够如实回答下面的问题，非常感谢您的合作！</p>\n\t\t<p style="color: red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;本项目通过中南大学湘雅医院伦理委员会审核批准。</p><br>',
                    },
                },
                {
                    "type": "html",
                    "name": "question10",
                    "html": {
                        "zh-cn": "<h5 style=\"color: red\">您是否同意接受该调查：</h5>"
                    }
                },
                {
                    "type": "checkbox",
                    "name": "是否同意接受该调查",
                    "title": {
                        "zh-cn": "是否同意接受该调查"
                    },
                    "titleLocation": "hidden",
                    "isRequired": true,
                    "choices": [
                        "同意"
                    ]
                },
                {
                    "type": "text",
                    "name": "填表人签名",
                    "title": {
                        "zh-cn": "签名"
                    },
                    "isRequired": true
                },
                {
                    "type": "text",
                    "name": "填表人联系电话",
                    "title": {
                        "zh-cn": "联系电话"
                    },
                    "isRequired": true,
                    "validators": [{
                        "type": "text",
                        "minLength": 11,
                        "maxLength": 11,
                        "allowDigits": true
                    }]
                },
                {
                    "type": "text",
                    "name": "填表人填写日期",
                    "title": {
                        "zh-cn": "填写日期"
                    },
                    "isRequired": true,
                    "inputType": "date"
                },
                {
                    "type": "text",
                    "name": "登录账号",
                    "visible": false,
                    "title": {
                        "zh-cn": "登陆账号"
                    },
                    "isRequired": true
                },
                {
                    "type": "text",
                    "name": "_id",
                    "visible": false,
                    "title": {
                        "zh-cn": "_id"
                    },
                    "isRequired": true
                }
            ]
        },
        {
            "name": "基本信息",
            "elements": [
                {
                    "type": "text",
                    "name": "街道/乡镇名称",
                    "title": {
                        "zh-cn": "街道/乡镇名称"
                    },
                    "isRequired": true
                },
                {
                    "type": "text",
                    "name": "户籍人口数",
                    "title": {
                    "zh-cn":  "户籍人口数"
                    },
                    "isRequired": true,
                    "inputType": "number"
                },
                {
                    "type": "text",
                    "name": "常住人口数",
                    "title": "常住人口数",
                    "isRequired": true,
                    "inputType": "number"
                },
                {
                    "type": "text",
                    "name": "男性人口数",
                    "title": {
                    "zh-cn": "男性人口数"
                    },
                    "isRequired": true,
                    "inputType": "number"
                },
                {
                    "type": "text",
                    "name": "女性人口数",
                    "title": {
                    "zh-cn": "女性人口数"
                    },
                    "isRequired": true,
                    "inputType": "number"
                },
                 {
                    "type": "expression",
                    "name": "性别比",
                    "title": {
                    "zh-cn": "性别比(男/女)"
                    },
                    "expression": "{男性人口数}/{女性人口数}",
                },
            ]
        },
         {
            "name": "年龄别、性别人口",
            "elements": [{
                "type": "text",
                "name": "0岁男",
                "title": "0岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "0岁女",
                "title": "0岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "1岁男",
                "title": "1岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "1岁女",
                "title": "1岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "2岁男",
                "title": "2岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "2岁女",
                "title": "2岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "3岁男",
                "title": "3岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "3岁女",
                "title": "3岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "4岁男",
                "title": "4岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "4岁女",
                "title": "4岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "5岁男",
                "title": "5岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "5岁女",
                "title": "5岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "6岁男",
                "title": "6岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "6岁女",
                "title": "6岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "7岁男",
                "title": "7岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "7岁女",
                "title": "7岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "8岁男",
                "title": "8岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "8岁女",
                "title": "8岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "9岁男",
                "title": "9岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "9岁女",
                "title": "9岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "10岁男",
                "title": "10岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "10岁女",
                "title": "10岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "11岁男",
                "title": "11岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "11岁女",
                "title": "11岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "12岁男",
                "title": "12岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "12岁女",
                "title": "12岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "13岁男",
                "title": "13岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "13岁女",
                "title": "13岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "14岁男",
                "title": "14岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "14岁女",
                "title": "14岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "15岁男",
                "title": "15岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "15岁女",
                "title": "15岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "16岁男",
                "title": "16岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "16岁女",
                "title": "16岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "17岁男",
                "title": "17岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "17岁女",
                "title": "17岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "18岁男",
                "title": "18岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "18岁女",
                "title": "18岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "19岁男",
                "title": "19岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "19岁女",
                "title": "19岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "20岁男",
                "title": "20岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "20岁女",
                "title": "20岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "21岁男",
                "title": "21岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "21岁女",
                "title": "21岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "22岁男",
                "title": "22岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "22岁女",
                "title": "22岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "23岁男",
                "title": "23岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "23岁女",
                "title": "23岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "24岁男",
                "title": "24岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "24岁女",
                "title": "24岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "25岁男",
                "title": "25岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "25岁女",
                "title": "25岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "26岁男",
                "title": "26岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "26岁女",
                "title": "26岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "27岁男",
                "title": "27岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "27岁女",
                "title": "27岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "28岁男",
                "title": "28岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "28岁女",
                "title": "28岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "29岁男",
                "title": "29岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "29岁女",
                "title": "29岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "30岁男",
                "title": "30岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "30岁女",
                "title": "30岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "31岁男",
                "title": "31岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "31岁女",
                "title": "31岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "32岁男",
                "title": "32岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "32岁女",
                "title": "32岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "33岁男",
                "title": "33岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "33岁女",
                "title": "33岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "34岁男",
                "title": "34岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "34岁女",
                "title": "34岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "35岁男",
                "title": "35岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "35岁女",
                "title": "35岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "36岁男",
                "title": "36岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "36岁女",
                "title": "36岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "37岁男",
                "title": "37岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "37岁女",
                "title": "37岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "38岁男",
                "title": "38岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "38岁女",
                "title": "38岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "39岁男",
                "title": "39岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "39岁女",
                "title": "39岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "40岁男",
                "title": "40岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "40岁女",
                "title": "40岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "41岁男",
                "title": "41岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "41岁女",
                "title": "41岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "42岁男",
                "title": "42岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "42岁女",
                "title": "42岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "43岁男",
                "title": "43岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "43岁女",
                "title": "43岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "44岁男",
                "title": "44岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "44岁女",
                "title": "44岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "45岁男",
                "title": "45岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "45岁女",
                "title": "45岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "46岁男",
                "title": "46岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "46岁女",
                "title": "46岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "47岁男",
                "title": "47岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "47岁女",
                "title": "47岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "48岁男",
                "title": "48岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "48岁女",
                "title": "48岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "49岁男",
                "title": "49岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "49岁女",
                "title": "49岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "50岁男",
                "title": "50岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "50岁女",
                "title": "50岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "51岁男",
                "title": "51岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "51岁女",
                "title": "51岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "52岁男",
                "title": "52岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "52岁女",
                "title": "52岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "53岁男",
                "title": "53岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "53岁女",
                "title": "53岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "54岁男",
                "title": "54岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "54岁女",
                "title": "54岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "55岁男",
                "title": "55岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "55岁女",
                "title": "55岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "56岁男",
                "title": "56岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "56岁女",
                "title": "56岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "57岁男",
                "title": "57岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "57岁女",
                "title": "57岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "58岁男",
                "title": "58岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "58岁女",
                "title": "58岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "59岁男",
                "title": "59岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "59岁女",
                "title": "59岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "60岁男",
                "title": "60岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "60岁女",
                "title": "60岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "61岁男",
                "title": "61岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "61岁女",
                "title": "61岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "62岁男",
                "title": "62岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "62岁女",
                "title": "62岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "63岁男",
                "title": "63岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "63岁女",
                "title": "63岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "64岁男",
                "title": "64岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "64岁女",
                "title": "64岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "65岁男",
                "title": "65岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "65岁女",
                "title": "65岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "66岁男",
                "title": "66岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "66岁女",
                "title": "66岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "67岁男",
                "title": "67岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "67岁女",
                "title": "67岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "68岁男",
                "title": "68岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "68岁女",
                "title": "68岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "69岁男",
                "title": "69岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "69岁女",
                "title": "69岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "70岁男",
                "title": "70岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "70岁女",
                "title": "70岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "71岁男",
                "title": "71岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "71岁女",
                "title": "71岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "72岁男",
                "title": "72岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "72岁女",
                "title": "72岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "73岁男",
                "title": "73岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "73岁女",
                "title": "73岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "74岁男",
                "title": "74岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "74岁女",
                "title": "74岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "75岁男",
                "title": "75岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "75岁女",
                "title": "75岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "76岁男",
                "title": "76岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "76岁女",
                "title": "76岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "77岁男",
                "title": "77岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "77岁女",
                "title": "77岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "78岁男",
                "title": "78岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "78岁女",
                "title": "78岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "79岁男",
                "title": "79岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "79岁女",
                "title": "79岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "80岁男",
                "title": "80岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "80岁女",
                "title": "80岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "81岁男",
                "title": "81岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "81岁女",
                "title": "81岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "82岁男",
                "title": "82岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "82岁女",
                "title": "82岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "83岁男",
                "title": "83岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "83岁女",
                "title": "83岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "84岁男",
                "title": "84岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "84岁女",
                "title": "84岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "85岁男",
                "title": "85岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "85岁女",
                "title": "85岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "86岁男",
                "title": "86岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "86岁女",
                "title": "86岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "87岁男",
                "title": "87岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "87岁女",
                "title": "87岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "88岁男",
                "title": "88岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "88岁女",
                "title": "88岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "89岁男",
                "title": "89岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "89岁女",
                "title": "89岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "90岁男",
                "title": "90岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "90岁女",
                "title": "90岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "91岁男",
                "title": "91岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "91岁女",
                "title": "91岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "92岁男",
                "title": "92岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "92岁女",
                "title": "92岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "93岁男",
                "title": "93岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "93岁女",
                "title": "93岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "94岁男",
                "title": "94岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "94岁女",
                "title": "94岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "95岁男",
                "title": "95岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "95岁女",
                "title": "95岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "96岁男",
                "title": "96岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "96岁女",
                "title": "96岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "97岁男",
                "title": "97岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "97岁女",
                "title": "97岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "98岁男",
                "title": "98岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "98岁女",
                "title": "98岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "99岁男",
                "title": "99岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "99岁女",
                "title": "99岁女",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "100岁男",
                "title": "100岁男",
                "isRequired": true,
                "inputType": "number",
            },
                {
                "type": "text",
                "name": "100岁女",
                "title": "100岁女",
                "isRequired": true,
                "inputType": "number",
            },

                {
                    "type": "html",
                    "name": "结束语",
                    "html": {
                        "zh-cn": "<b>感谢您的支持与配合!</b>"
                    }
                },
                {
                    "type": "text",
                    "name": "调查员签字",
                    "title": {
                        "zh-cn": "调查员签字"
                    },
                    "isRequired": true
                },
                {
                    "type": "text",
                    "name": "调查日期",
                    "title": {
                        "zh-cn": "调查日期"
                    },
                    "isRequired": true,
                    "inputType": "date"
                },
                {
                    "type": "html",
                    "name": "是否还需再次编辑",
                    "html": {
                        "zh-cn": "<h5 style=\"color: red\">是否需要再次编辑:(注：如果问卷中填写的数据已经确定，请选择否，若还需要更改数据，请选择是)</h5>"
                    }
                },
                {
                    "type": "radiogroup",
                    "name": "是否需要再次编辑",
                    "title": {
                        "zh-cn": "是否需要再次编辑"
                    },
                    "titleLocation": "hidden",
                    "isRequired": true,
                    "choices": [
                        "是",
                        "否"
                    ]
                }
            ],
            "title": {
                "zh-cn": "年龄别、性别人口（按1岁分段）"
            }
        },
    ],
    "clearInvisibleValues": "onHidden"
}

// 存储用户名和问卷ID
var username
var queID
window.onload = function () {
    var surveyData = $("#surveyData").text(); //将指定编辑的数据传过来
    survey.data = JSON.parse(surveyData); //转化为json格式,并赋值给survey的data
    username = survey.data['登录账号']
    queID = survey.data['_id']
    console.log(survey.data);
}
var survey = new Survey.Model(surveyJSON);
$("#surveyContainer").Survey({
    model: survey,
    onComplete: sendAllDataToServer
});

// 该函数实现填一个判断一个，判断的是有范围的，比如说电话号码长度
survey.checkErrorsMode = "onValueChanged";

survey.sendResultOnPageNext = true;

function sendAllDataToServer(survey) {
    /* 此处需要手动复制，可能是因为只能提交没有隐藏的数据 */
    queData = survey.data
    queData['登录账号'] = username
    queData['_id'] = queID
    $.ajax({
        url: '/pcpages/submitEditQue11/',
        type: 'post',
        dataType: 'json',
        contentType: "application/json;charset=utf-8",
        data: JSON.stringify(queData),
        success: function (data) {
            console.log('数据修改成功');
            window.location.href="/pcpages/pcpages_cgx/no11/"
        }
    });
}